#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>

#define PAT "/etc"


int main(){
	
	DIR *dp;
	struct dirent *cur;

	dp=opendir();
	if(dp==NULL){
		perror("opendir()");
		eixt(1);
	}
	while((cur=readdir(dp))!= NULL){
		puts(cur->d_name);

	}

	exit(0);
}

